(function(){"use strict";BX.namespace("BX.Landing.Client");BX.Landing.Client.Google=function(){this.host="https://www.googleapis.com/customsearch/v1"};BX.Landing.Client.Google.getInstance=function(){return BX.Landing.Client.Google.instance||(BX.Landing.Client.Google.instance=new BX.Landing.Client.Google)};BX.Landing.Client.Google.prototype={makeUrl:function(e){e=typeof e==="object"?e:{};e.key=BX.Landing.Client.Google.key;e.searchType="image";e.rights="cc_attributte";e.imgSize="xxlarge";e.cx="001784514362171586730:5nd_tu8dtbw";e.safe="medium";e.imgType="photo";e.filter="1";e.num="10";return BX.util.add_url_param(this.host,e)},request:function(e){return new Promise(function(t,n){BX.ajax({url:this.makeUrl(e),method:"GET",data:e,onsuccess:function(e){var i,o;try{i=JSON.parse(e);i="items"in i?i.items:[]}catch(e){i=[];console.error(e);n(e);o=true}if(!o){t(i)}},onfailure:n})}.bind(this))},search:function(e,t){t=(BX.type.isNumber(t)?t:1)*10;return this.request({start:t,q:encodeURI(e)})}}})();
//# sourceMappingURL=google_images.map.js